package com.jic.market.service.skill;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.market.entity.skill.ActivitySkillGoodsConfig;

import java.util.List;

/**
 * 秒杀活动商品基础配置表
 *
 * @author : seven
 * @version : v1.0.0
 * @email : 774329481@qq.com
 * @since : 2020-03-12 05:22:15
 */
public interface ActivitySkillGoodsConfigService {

    long insert(ActivitySkillGoodsConfig activitySkillGoodsConfig);

    long delete(String promotionId);

    long deleteById(Long id);

    long update(ActivitySkillGoodsConfig activitySkillGoodsConfig);

    ActivitySkillGoodsConfig queryByPrimaryKey(Long id);

    List<ActivitySkillGoodsConfig> query(ActivitySkillGoodsConfig activitySkillGoodsConfig);

    PageResult<ActivitySkillGoodsConfig> queryPage(ActivitySkillGoodsConfig activitySkillGoodsConfig, Page pageQuery);

    long deleteByPromotionIdAndGoodsId(String promotionId, String goodsId,String timeId);

    List<ActivitySkillGoodsConfig> queryGoodsInfoByTimeId(String promotionId,String timeId, Integer start, Integer limit);

    long deleteGoodsByPromotionIdAndMerchantId(String promotionId,String merchantId);
    long deleteGoodsByPromotionIdAndStoreId(String promotionId,String storeId);
    long deleteGoodsByPromotionIdAndTimeId(String promotionId,String timeId);

    Long queryGoodsInfoByTimeIdTotal(String promotionId, String skillTimeId);

    Long queryGoodsInfoByTimeIdSkuTotal(String promotionId, String skillTimeId);
}